 import Vue from 'vue'
 import axios from 'axios'
 import Router from 'vue-router'

 
 const router = new Router({
   routes: [
	 {
	   path: '/index',
	   name: 'index',
	   component: resolve => require(['@/views/index/index.vue'], resolve)
	 }, 
	 {
		path: '/',
		name: 'home',
		redirect:'jinghe',
	}, 
	 // {
	 //   path: '/industry1',
	 //   name: 'industry1',
	 //   component: resolve => require(['@/views/industry/industry1n.vue'], resolve)
	 // }, 
	 {
	   path: '/industry1n',
	   name: 'industry1n',
	   component: resolve => require(['@/views/industry/industry1n.vue'], resolve)
	 }, 
	 {
	   path: '/industry1z',
	   name: 'industry1z',
	   component: resolve => require(['@/views/industry/industry1z.vue'], resolve)
	 }, 
	 // {
	 //   path: '/industry2',
	 //   name: 'industry2',
	 //   component: resolve => require(['@/views/industry/industry2n.vue'], resolve)
	 // },
	 {
	   path: '/industry2n',
	   name: 'industry2n',
	   component: resolve => require(['@/views/industry/industry2n.vue'], resolve)
	 }, 
	 {
	   path: '/industry2z',
	   name: 'industry2z',
	   component: resolve => require(['@/views/industry/industry2z.vue'], resolve)
	 }, 
	 {
	   path: '/internation1n',
	   name: 'internation1n',
	   component: resolve => require(['@/views/internation/internation1n.vue'], resolve)
	 },
	 {
	   path: '/internation1t',
	   name: 'internation1t',
	   component: resolve => require(['@/views/internation/internation1t.vue'], resolve)
	 },
	 {
	   path: '/internation2n',
	   name: 'internation2n',
	   component: resolve => require(['@/views/internation/internation2n.vue'], resolve)
	 },
	 {
	   path: '/internation2t',
	   name: 'internation2t',
	   component: resolve => require(['@/views/internation/internation2t.vue'], resolve)
	 },
	 {
	   path: '/internation3q',
	   name: 'internation3q',
	   component: resolve => require(['@/views/internation/internation3q.vue'], resolve)
	 },
	 {
	   path: '/internation3qt',
	   name: 'internation3qt',
	   component: resolve => require(['@/views/internation/internation3qt.vue'], resolve)
	 },
	 {
	   path: '/internation3z',
	   name: 'internation3z',
	   component: resolve => require(['@/views/internation/internation3z.vue'], resolve)
	 },
	 {
	   path: '/internation3zt',
	   name: 'internation3zt',
	   component: resolve => require(['@/views/internation/internation3zt.vue'], resolve)
	 },
	 {
	   path: '/internation3n',
	   name: 'internation3n',
	   component: resolve => require(['@/views/internation/internation3n.vue'], resolve)
	 },
	 {
	   path: '/internation3nt',
	   name: 'internation3nt',
	   component: resolve => require(['@/views/internation/internation3nt.vue'], resolve)
	 },
	 {
	   path: '/internation4n',
	   name: 'internation4n',
	   component: resolve => require(['@/views/internation/internation4cn.vue'], resolve)
	 },
	 {
	   path: '/internation4t',
	   name: 'internation4t',
	   component: resolve => require(['@/views/internation/internation4ct.vue'], resolve)
	 },
	 {
	   path: '/internation5q',
	   name: 'internation5q',
	   component: resolve => require(['@/views/internation/internation5q.vue'], resolve)
	 },
	 {
	   path: '/internation5qx',
	   name: 'internation5qx',
	   component: resolve => require(['@/views/internation/internation5qx.vue'], resolve)
	 },
	 {
	   path: '/internation5qm',
	   name: 'internation5qm',
	   component: resolve => require(['@/views/internation/internation5qm.vue'], resolve)
	 },
	 {
	   path: '/internation5z',
	   name: 'internation5z',
	   component: resolve => require(['@/views/internation/internation5z.vue'], resolve)
	 },
	 {
	   path: '/internation5zm',
	   name: 'internation5zm',
	   component: resolve => require(['@/views/internation/internation5zm.vue'], resolve)
	 },
	 {
	   path: '/internation5n',
	   name: 'internation5n',
	   component: resolve => require(['@/views/internation/internation5n.vue'], resolve)
	 },
	 {
	   path: '/internation5nm',
	   name: 'internation5nm',
	   component: resolve => require(['@/views/internation/internation5nm.vue'], resolve)
	 },
	 // {
	 //   path: '/capital1',
	 //   name: 'capital1',
	 //   component: resolve => require(['@/views/capital/dncapital1.vue'], resolve)
	 // },
	 {
	   path: '/dncapital1',
	   name: 'dncapital1',
	   component: resolve => require(['@/views/capital/dncapital1.vue'], resolve)
	 },
	 {
	   path: '/dncapital1z',
	   name: 'dncapital1z',
	   component: resolve => require(['@/views/capital/dncapital1z.vue'], resolve)
	 },
	 {
	   path: '/dncapital1n',
	   name: 'dncapital1n',
	   component: resolve => require(['@/views/capital/dncapital1n.vue'], resolve)
	 },
	 {
	   path: '/fncapital1',
	   name: 'fncapital1',
	   component: resolve => require(['@/views/capital/fncapital1.vue'], resolve)
	 },
	 {
	   path: '/fncapital1z',
	   name: 'fncapital1z',
	   component: resolve => require(['@/views/capital/fncapital1z.vue'], resolve)
	 },
	 {
	   path: '/fncapital1n',
	   name: 'fncapital1n',
	   component: resolve => require(['@/views/capital/fncapital1n.vue'], resolve)
	 },
	 {
	   path: '/dtcapital1',
	   name: 'dtcapital1',
	   component: resolve => require(['@/views/capital/dtcapital1.vue'], resolve)
	 },
	 {
	   path: '/dtcapital1z',
	   name: 'dtcapital1z',
	   component: resolve => require(['@/views/capital/dtcapital1z.vue'], resolve)
	 },
	 {
	   path: '/dtcapital1n',
	   name: 'dtcapital1n',
	   component: resolve => require(['@/views/capital/dtcapital1n.vue'], resolve)
	 },
	 {
	   path: '/ftcapital1',
	   name: 'ftcapital1',
	   component: resolve => require(['@/views/capital/ftcapital1.vue'], resolve)
	 },
	 {
	   path: '/ftcapital1z',
	   name: 'ftcapital1z',
	   component: resolve => require(['@/views/capital/ftcapital1z.vue'], resolve)
	 },
	 {
	   path: '/ftcapital1n',
	   name: 'ftcapital1n',
	   component: resolve => require(['@/views/capital/ftcapital1n.vue'], resolve)
	 },
	 // {
	 //   path: '/capital2',
	 //   name: 'capital2',
	 //   component: resolve => require(['@/views/capital/qncapital2.vue'], resolve)
	 // },
	 {
	   path: '/qtcapital2',
	   name: 'qtcapital2',
	   component: resolve => require(['@/views/capital/qtcapital2.vue'], resolve)
	 },
	 {
	   path: '/ztcapital2',
	   name: 'ztcapital2',
	   component: resolve => require(['@/views/capital/ztcapital2.vue'], resolve)
	 },
	 {
	   path: '/ntcapital2',
	   name: 'ntcapital2',
	   component: resolve => require(['@/views/capital/ntcapital2.vue'], resolve)
	 },
	 {
	   path: '/qncapital2',
	   name: 'qncapital2',
	   component: resolve => require(['@/views/capital/qncapital2.vue'], resolve)
	 },
	 {
	   path: '/zncapital2',
	   name: 'zncapital2',
	   component: resolve => require(['@/views/capital/zncapital2.vue'], resolve)
	 },
	 {
	   path: '/nncapital2',
	   name: 'nncapital2',
	   component: resolve => require(['@/views/capital/nncapital2.vue'], resolve)
	 },
	 // {
	 //   path: '/capital3',
	 //   name: 'capital3',
	 //   component: resolve => require(['@/views/capital/qncapital3.vue'], resolve)
	 // },
	 {
	   path: '/qtcapital3',
	   name: 'qtcapital3',
	   component: resolve => require(['@/views/capital/qtcapital3.vue'], resolve)
	 },
	 {
	   path: '/ztcapital3',
	   name: 'ztcapital3',
	   component: resolve => require(['@/views/capital/ztcapital3.vue'], resolve)
	 },
	 {
	   path: '/ntcapital3',
	   name: 'ntcapital3',
	   component: resolve => require(['@/views/capital/ntcapital3.vue'], resolve)
	 },
	 {
	   path: '/qncapital3',
	   name: 'qncapital3',
	   component: resolve => require(['@/views/capital/qncapital3.vue'], resolve)
	 },
	 {
	   path: '/zncapital3',
	   name: 'zncapital3',
	   component: resolve => require(['@/views/capital/zncapital3.vue'], resolve)
	 },
	 {
	   path: '/nncapital3',
	   name: 'nncapital3',
	   component: resolve => require(['@/views/capital/nncapital3.vue'], resolve)
	 },
	 // {
	 //   path: '/capital4',
	 //   name: 'capital4',
	 //   component: resolve => require(['@/views/capital/qncapital4.vue'], resolve)
	 // },
	 {
	   path: '/qtcapital4',
	   name: 'qtcapital4',
	   component: resolve => require(['@/views/capital/qtcapital4.vue'], resolve)
	 },
	 {
	   path: '/ztcapital4',
	   name: 'ztcapital4',
	   component: resolve => require(['@/views/capital/ztcapital4.vue'], resolve)
	 },
	 {
	   path: '/ntcapital4',
	   name: 'ntcapital4',
	   component: resolve => require(['@/views/capital/ntcapital4.vue'], resolve)
	 },
	 {
	   path: '/qncapital4',
	   name: 'qncapital4',
	   component: resolve => require(['@/views/capital/qncapital4.vue'], resolve)
	 },
	 {
	   path: '/zncapital4',
	   name: 'zncapital4',
	   component: resolve => require(['@/views/capital/zncapital4.vue'], resolve)
	 },
	 {
	   path: '/capital5',
	   name: 'capital5',
	   component: resolve => require(['@/views/capital/capital5.vue'], resolve)
	 },
	 {
	   path: '/nncapital4',
	   name: 'nncapital4',
	   component: resolve => require(['@/views/capital/nncapital4.vue'], resolve)
	 },
	 {
	   path: '/ningbo1',
	   name: 'ningbo1',
	   component: resolve => require(['@/views/ningBo/ningbo1.vue'], resolve)
	 },
	 {
	   path: '/ningbo2',
	   name: 'ningbo2',
	   component: resolve => require(['@/views/ningBo/ningbo2.vue'], resolve)
	 },
	 // {
	 //   path: '/city',
	 //   name: 'city',
	 //   component: resolve => require(['@/views/city/ncity.vue'], resolve)
	 // },
	 {
	   path: '/ncity',
	   name: 'ncity',
	   component: resolve => require(['@/views/city/ncity.vue'], resolve)
	 },
	 {
	   path: '/zcity',
	   name: 'zcity',
	   component: resolve => require(['@/views/city/zcity.vue'], resolve)
	 },
	 {
	   path: '/enterprisePage',
	   name: 'enterprisePage',
	   component: resolve => require(['@/views/enterprise/enterprisePage.vue'], resolve),
		 meta: {
			keepAlive: true // true需要缓存，false不需要缓存
		}
	 },
	 {
	   path: '/enterpriseOne',
	   name: 'enterpriseOne',
	   component: resolve => require(['@/views/enterprise/enterpriseOne.vue'], resolve)
	 },
	 {
		path: '/enterpriseOne1',
		name: 'enterpriseOne1',
		component: resolve => require(['@/views/enterprise/enterpriseOne1.vue'], resolve)
	},
	 {
		path: '/wuli',
		name: 'wuli',
		component: resolve => require(['@/views/wuli/index.vue'], resolve),
		meta: {
			keepAlive: true // true需要缓存，false不需要缓存
		}
	},
	{
	 path: '/jinghe',
	 name: 'jinghe',
	//  redirect: '/jinghe/right1?cyljb=全部',
	 redirect: {
			name: 'jingheRight1',
			query: {
				cyljb: '全部',
			}
		},
	 component: resolve => require(['@/views/jinghe/index.vue'], resolve),
	 meta: {
		 keepAlive: true // true需要缓存，false不需要缓存
	 },
	 children: [{
		path: '/jinghe/right1',
		name: 'jingheRight1',
		component: resolve => require(['@/views/jinghe/right1/right1.vue'], resolve)
	},
	{
		path: '/jinghe/right2',
		name: 'jingheRight2',
		props: true,
		component: resolve => require(['@/views/jinghe/right2/right2.vue'], resolve)
	},
	{
		path: '/jinghe/right3',
		name: 'jingheRight3',
		props: true,
		component: resolve => require(['@/views/jinghe/right3/right3.vue'], resolve)
	},
	{
		path: '/jinghe/right4',
		name: 'jingheRight4',
		props: true,
		component: resolve => require(['@/views/jinghe/right4/right4.vue'], resolve)
	},
	{
		path: '/jinghe/right5',
		name: 'jingheRight5',
		props: true,
		component: resolve => require(['@/views/jinghe/right5/right5.vue'], resolve)
	},
	{
		path: '/jinghe/right6',
		name: 'jingheRight6',
		props: true,
		component: resolve => require(['@/views/jinghe/right6/right6.vue'], resolve)
	},
	{
		path: '/jinghe/right7',
		name: 'jingheRight7',
		props: true,
		component: resolve => require(['@/views/jinghe/right7/right7.vue'], resolve)
	}]
 },
	 {
	   path: '/technology',
	   name: 'technology',
	   component: resolve => require(['@/views/technology/technology.vue'], resolve)
	 },
	 {
	   path: '/topdf',
	   name: 'topdf',
	   component: resolve => require(['@/views/topdf.vue'], resolve)
	 },
	  // {
	  //   path: '/monitoring1',
	  //   name: 'monitoring1',
	  //   component: resolve => require(['@/views/monitoring/monitoring1.vue'], resolve)
	  // }, 
	  // {
	  //   path: '/monitoring2',
	  //   name: 'monitoring2',
	  //   component: resolve => require(['@/views/monitoring/monitoring2.vue'], resolve)
	  // },
	  //  {
	  //    path: '/monitoring3',
	  //    name: 'monitoring3',
	  //    component: resolve => require(['@/views/monitoring/monitoring3.vue'], resolve)
	  //  },
	   
	   
	   
	   
   ]
 })
 

 const includPush = Router.prototype.push
 Router.prototype.push = function push(location) {
		return includPush.call(this, location).catch(err => err)
 }
 Vue.use(Router)
 
 export default router